package l1j.opqlo.Timer.NpcControler;

import l1j.opqlo.Timer.NpcControler.pet.PetHprTimer;
import l1j.opqlo.Timer.NpcControler.pet.PetMprTimer;
import l1j.opqlo.Timer.NpcControler.pet.SummonHprTimer;
import l1j.opqlo.Timer.NpcControler.pet.SummonMprTimer;
import l1j.server.server.model.map.L1Map;
import l1j.server.server.model.map.L1WorldMap;


public class NpcTimerControler {

	public void Load() throws InterruptedException {

		// 死亡NPC
		final NpcDeadTimer npcDeadTimer = new NpcDeadTimer();
		npcDeadTimer.start();
		Thread.sleep(50);// 延遲

		// NPC 回血回魔計時器
//		L1NpcRegenerationTimer.getInstance();

		// Pet HP自然回復時間軸異
				final PetHprTimer petHprTimer = new PetHprTimer();
				petHprTimer.start();
				Thread.sleep(50);// 延遲
				
				// Pet MP自然回復時間軸
				final PetMprTimer petMprTimer = new PetMprTimer();
				petMprTimer.start();
				Thread.sleep(50);// 延遲

				// Summon HP自然回復時間軸
				final SummonHprTimer summonHprTimer = new SummonHprTimer();
				summonHprTimer.start();
				Thread.sleep(50);// 延遲
				
				// Summon MP自然回復時間軸
				final SummonMprTimer summonMprTimer = new SummonMprTimer();
				summonMprTimer.start();
				Thread.sleep(50);// 延遲
				
				for(final L1Map map : L1WorldMap.getInstance().getAllMap().values()){
					// HP 回復
					final NpcHprTimer npcHprTimer = new NpcHprTimer();
					npcHprTimer.start(map);
					// MP 回復
					final NpcMprTimer npcMprTimer = new NpcMprTimer();
					npcMprTimer.start(map);
				}
	}
}
